<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <%@include file="/view/resource.jsp" %>

  </head>
  <body class="easyui-layout">
  	 <!-- Search panel start -->
 	 <div class="ui-search-panel" region="north" style="height: 80px;" title="过滤条件" data-options="striped: false,collapsible:false,iconCls:'icon-search',border:false" >    
 	 <form id="searchForm">
 	 	<input class="hidden" id='search_parentId' name="parentId">
 	 	<p class="ui-fields">
            <label class="ui-label">姓名:</label> 
            <input name="hmeName" class="easyui-box ui-text" style="width:100px;">
        </p>
        <a id="btn-search" class="easyui-linkbutton" iconCls="icon-search">查询</a>&nbsp;&nbsp;&nbsp;&nbsp;
      </form>  
     </div> 
     <!--  Search panel end -->
     
     <!-- DataList  -->
	 <div region="center" border="false" >
     	<table id="data-list" ></table>
     </div>
    
     <!-- Edit Win&From -->
     <div id="edit-win" class="easyui-dialog" title="编辑数据" data-options="closed:true,iconCls:'icon-save',modal:true"  style="width:500px;height:450px;">  
     	<form id="editForm" class="ui-form" method="post"> 
     	 <!-- 隐藏文本框 -->
     	 <input class="hidden" name="id">
     	 <input class="hidden" name="deleted">
    	 <input class="hidden" name="parentId" id='edit_parentId'>
    	 <div class="ui-edit"> 
    	   <div data-options="region:'north',split:true" style="height:185px;padding:10px">  
	               <div class="ftitle">详细</div>
		            <div class="fitem">  
		               <label>人员姓名:</label>  
		               <input name="hmeName" id="hmeName" type="hidden">
		               <select  id="hrName" class="easyui-combobox"  name="hrId" style="width:150px; border: 1px solid #ccc"> </select>
		           </div>
	                <div class="fitem"> 
		            <label>所在部门:</label>   
           			 <select  id="hmeDepartment" class="easyui-combobox"  name="hmeDepartment" style="width:150px; border: 1px solid #ccc"> </select>   
            		</div>
		           <div class="fitem">  
		               <label>餐费补贴:</label>  
		               <input class="easyui-validatebox" type="text" name="hmeMealsubsidies">
		           </div>  
		           <div class="fitem">  
		               <label>餐费扣除:</label>  
		               <input class="easyui-validatebox" type="text" name="hmeMealeduction" >
		           </div>  
		           <div class="fitem">  
		               <label>备注:</label>  
		               <input class="easyui-validatebox" type="text" name="hmeDesc" >
		           </div>  
		           <div class="fitem">  
		               <label>月份:</label>  
		               <input  id="dd" class="easyui-datebox"  name="hmeMonth" style="width:150px; border: 1px solid #ccc">
		           </div>  
		           </div>
		           </div>
     	</form>
  	 </div>
  <script type="text/javascript" src="<%=basePath%>/osjs/manpower/TostHrMealaddinfo.js"></script>
  
    <!-- Edit Win&From -->
     <div id="import-win" class="easyui-dialog" title="批量导入餐补" data-options="closed:true,iconCls:'icon-tip',modal:true"  style="width:400px;height:250px;">  
     	<form id="importForm" action="upload.do" class="ui-form" method="post" enctype="multipart/form-data" target="ifm" onsubmit="return melsub(this)"> 
     	 <!-- 隐藏文本框 -->
    	 <div class="ui-edit"> 
    	   <div data-options="region:'north',split:true" style="height:185px;padding:10px"> 
    	   选择生成餐补月份：<input class='easyui-datebox' name='hmeMonth' id="dd"/><br/> 
			<input type="file" name="excelPath" value="选择文件"> <br/>
			<input type="submit" value="确认导入" >
		    </div>
     	</form>
     	<iframe id='ifm' name='ifm' style="visibility:hidden;display:none"></iframe>
  	 </div>
  </body>
   <script type="text/javascript">
  	 function melsub(tobj){
  	 	var obj = tobj.hmeMonth;
  	 	var objfile = tobj.excelPath;
  	 	if(obj.value==null||obj.value==''){
  	 		alert("请选择您需要导入的月份！");
  	 		return false;
  	 	}
  	 	if(objfile.value==null || objfile.value==''){
  	 		alert("请选择您需要导入的文件！");
  	 		return false;
  	 	}
  	 	return true;
  	 }
  	 </script>
  
</html>